package cn.lili.modules.promotion.client;

import cn.lili.modules.constant.ServiceConstant;
import cn.lili.modules.promotion.entity.dos.BlindboxArticleRel;
import cn.lili.modules.promotion.fallback.BlindboxArticleRelFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;

import java.util.List;

@FeignClient(path = "${server.servlet.context-path}", name = ServiceConstant.PROMOTION_SERVICE, contextId = "blindbox-articlerel", fallback = BlindboxArticleRelFallback.class)
public interface BlindboxArticleRelClient {

    /**
     * 根据协议ID查询
     * @param articleId 协议ID
     * */
    @PutMapping("/feign/promotion/blindbox/rel")
    List<BlindboxArticleRel> getBlindboxArticleRelByarticleId(String articleId);
}
